{__NOLAYOUT__}
<form data-method="post" data-action="{:url('admin/otc/buy')}" data-submit="ajax" data-validate="true" class="form-horizontal">
    <div class="modal fade" tabindex="-1" role="dialog" aria-hidden="true">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span></button>
                    <h3 class="modal-title">{:lang('Confirm purchase quantity')}</h3>
                </div>
                <input type="hidden" name="id" value="{$data.id ?? ''}">
                <div class="modal-body">
                    <div class="modal-body-content">
                        <input type="hidden" class="form-control" name="id" maxlength="8"  placeholder="" value="{$sell.id}" readonly="true">
                        <div class="form-group must">
                            <label class="col-sm-3 control-label">{:lang('Maximum quantity available')}</label>
                            <div class="col-sm-7">
                                <input type="text" class="form-control" name="available_num" maxlength="8"  placeholder="" value="{$sell.available_num}" readonly="true">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">{:lang('Confirm purchase quantity')}</label>
                            <div class="col-sm-7"> 
                                <input type="number" class="form-control" name="buy_num" maxlength="11"  required value=""  >
                            </div>
                        </div>





                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-default" data-dismiss="modal">{:lang('Cancel')}</button>
                    <button type="submit" class="btn btn-primary">{:lang('Submit')}</button>
                </div>
            </div>
        </div>
    </div>
</form>